﻿package com.neriksworkshop.colourLoversDemos.wordPatches.view 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Erik
	 */
	public class PatchEvent extends Event 
	{
		
		public static const ADDED:String = "added";
		
		private var _patchId:int;
		
		public function PatchEvent(_patchId:int, type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			this._patchId = _patchId;
			
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new PatchEvent(_patchId, type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("PatchEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get patchId():int { return _patchId; }
		
	}
	
}